﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.BasicData.Clients;
using WMS.BasicData.ProductDetails.DTO;
using WMS.StorageManagement.BinLocationDefinitions.DTO;
using WMS.StorageManagement.DTO;

namespace WMS.StorageManagement.BinLocationDefinitions
{
    /// <summary>
    /// 储位表接口
    /// </summary>
    public interface IBinLocationDefinitionAppService : IApplicationService
    {
        /// <summary>
        /// 可用储位
        /// </summary>
        /// <returns></returns>
        Task<PagedResult> GetEmptySpace(int page, int limit,string? customer);


        /// <summary>
        /// 可用储位
        /// </summary>
        /// <returns></returns>
        Task<List<Client>> GetClient();

        /// <summary>
        /// 创建储位
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<int>CreateBinLocationDefi(BinLocationDefiDTO CreateBinDTO);


        /// <summary>
        /// 删除储位
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int>DeleteBinLocationDefi(int id);

        /// <summary>
        /// 查看商品明细
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<BinLocationDefiDTO> GetBinLocationDefiById(int id);

        /// <summary>
        /// 更新商品明细
        /// </summary>
        /// <param name="id"></param>
        /// <param name="updateProductDetailsDto"></param>
        /// <returns></returns>
        Task<int> UpdateBinLocationDefi(BinLocationDefiDTO updateBinDTO);


    }
}
